import type { XtxGuessInstance } from '@/types/components'
import { ref } from 'vue'

/**
 * 猜你喜欢组合式函数
 */
export const useGuessPullupLoad = () => {
  const guessRef = ref<XtxGuessInstance | null>(null)
  // 上拉加载猜你喜欢数据
  const onScrolltolower = () => {
    guessRef.value?.getMore()
  }

  return { guessRef, onScrolltolower }
}
